package com.example.seckilldemo.vo;


import javax.validation.constraints.NotNull;

import com.example.seckilldemo.validator.IsMobile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * 登录参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo {

    @NotNull(message = "id不能为空")
    @IsMobile
    private String mobile;

    @NotNull(message = "密码不能为空")
    @Length(min = 32)
    private String password;

}
